<template>
  <div class="township">
    <div class="title">
      请选择你要写信的领导
    </div>
    <div class="content flex items-end justify-start flex-wrap">

      <div v-for="(v, i) of nameList" :key="i" class="item">
        <el-button round @click="btn">{{ v.name }}</el-button>
      </div>
    </div>
  </div>
</template>

<script>
import PhotoItem from "@STmailboxesWeb/components/photoItem";
export default {
  name: "Township",
  components: {
    PhotoItem
  },
  data() {
    return {
      nameList: [{
        id: 2,
        name: "人大办 牟建坤"
      },
      {
        id: 3,
        name: "政协办  陈杰"
      },
      {
        id: 4,
        name: "政协办  陈杰"
      }, {
        id: 5,
        name: "纪委（监察委）  李辉"
      },
      {
        id: 1,
        name: "县委办 辛亚伟"
      }, {
        id: 2,
        name: "人大办 牟建坤"
      },
      {
        id: 3,
        name: "政协办  陈杰"
      },
      {
        id: 4,
        name: "政协办  陈杰"
      }, {
        id: 5,
        name: "纪委（监察委）  李辉"
      },
      {
        id: 1,
        name: "县委办 辛亚伟"
      }, {
        id: 2,
        name: "人大办 牟建坤"
      },
      {
        id: 3,
        name: "政协办  陈杰"
      },
      {
        id: 4,
        name: "政协办  陈杰"
      }, {
        id: 5,
        name: "纪委（监察委）  李辉"
      },
      {
        id: 4,
        name: "政协办  陈杰"
      }, {
        id: 5,
        name: "纪委（监察委）  李辉"
      },
      {
        id: 1,
        name: "县委办 辛亚伟"
      }, {
        id: 2,
        name: "人大办 牟建坤"
      },
      {
        id: 3,
        name: "政协办  陈杰"
      },

      ]
    }
  },
  methods: {
    btn() {
      this.$router.push({ name: 'notice' });

    }
  }

}
</script>

<style lang="scss" scoped>
.township {
  width: 100%;

  .title {
    background: linear-gradient(180deg, #FFFFFF 0%, #E9E9E9 100%);
    border: 1px solid #DBDBDB;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 8px;
    padding: 16px;
    width: 100%;
    // height: 8px;
    height: 40px;
  }

  .content {
    padding: 16px;
    width: 100%;
    // height: 8px;
    background: #FFFFFF;
    border: 1px solid #D5D5D5;

    .item {
      width: 20%;
      margin-bottom: 14px;
      text-align: center;
      // height: 40px;
      // background: #F6F6F6;
      // border-radius: 20px;
      // border: 1px solid #E8E5E5;
      // text-align: center;
      // line-height: 40px;
    }
  }
}

::v-deep {
  .item button {
    width: 90%;
    display: inline-block;
  }
}
</style> 